package com.tl.khadmin.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.tl.khadmin.bean.Freight;
import com.tl.khadmin.bean.dto.FreightListDto;

public interface FreightMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Freight record);

    int insertSelective(Freight record);

    Freight selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Freight record);

    int updateByPrimaryKey(Freight record);

	List<Freight> listFreight(Map<String, Object> param);

	List<FreightListDto> showFreightByPage(Map<String, Object> params);

	Integer queryIdByName(@Param("freightName") String freightName, @Param("supplierId") Long supplierId);

	Integer queryIdByNameAndId(@Param("id")Integer id, @Param("freightName") String freightName);

	int deleteByIds(@Param("ids") String[] idsArr);
    
    
}